<extend name="Public/base" />
<block name="style">
    <link href="__STATIC__/iCheck/skins/flat/green.css" rel="stylesheet">
</block>
<block name="body">

    <div class="right_col" role="main">
        <div class="">



            <div class="page-title">
                <div class="title_left">
                    <h3>{$meta_title} <small></small></h3>
                </div>

                <div class="title_right">
                    <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
                        <div class="input-group">
                            <input type="text" class="form-control search-input" placeholder="请输入菜单名搜索" value="{$title|default=''}" name="title"  onkeydown="ctlent()">
                            <span class="input-group-btn">
                                <button class="btn btn-default" type="submit" id="search" url="{:U('Menu/index')}">Go!</button>
                            </span>
                        </div> 
                    </div>
                </div>
            </div>

            <div class="clearfix"></div>
            <div class="col-md-12 col-sm-12 col-xs-12">
                <!-- <div class="x_panel">
                  <div class="x_title">
                        <h2>搜索条件</h2>
                        <ul class="nav navbar-right panel_toolbox">
                            <li><a class="collapse-link"><i class="fa fa-chevron-down"></i></a>
                            </li>

                            <li><a class="close-link"><i class="fa fa-close"></i></a>
                            </li>
                        </ul>
                        <div class="clearfix"></div>
                    </div>


                    <div class="x_content" style='display: none;'>
                        <div class="col-md-2 col-sm-12 col-xs-12 form-group">
                            <input type="text" placeholder=".col-md-3" class="form-control">
                        </div> 
                        <div class="col-md-2 col-sm-12 col-xs-12 form-group">
                            <input type="text" placeholder=".col-md-3" class="form-control">
                        </div>
                        <div class="col-md-2 col-sm-12 col-xs-12 form-group">
                            <input type="text" placeholder=".col-md-3" class="form-control">
                        </div>
                        <div class="col-md-2 col-sm-12 col-xs-12 form-group">
                            <select  class="form-control"></select>
                        </div> 

                        <div class="col-md-1 col-sm-12 col-xs-12 form-group">
                            <button type="button" class="btn btn-success">搜索</button>
                        </div>  

                    </div>    


                </div> -->
            </div>




            <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                    <div class="x_title">
                        <h2>提现列表 <small></small></h2>

                       
                        <div class="clearfix"></div>
                    </div>


                    <div class="x_content">

<form class="ids">
                        <div class="table-responsive">
                            <table class="table table-striped jambo_table bulk_action">
                                <thead>
                                    <tr class="headings">
                                        <th>
                                            <input type="checkbox" id="check-all" class="flat">
                                        </th>
                                        <th class="column-title" style="width: 70px;">用户id </th>
                                        <th class="column-title">用户昵称 </th>
                                       <th class="column-title">金额 </th>
                                       <th class="column-title" style="width: 90px;">提现时间 </th>
                                        <th class="column-title">状态 </th>
                                        <th class="column-title no-link last"><span class="nobr">操作</span>
                                        </th>
                                        <th class="bulk-actions" colspan="12">
                                            <a class="antoo" style="color:#fff; font-weight:500;">Bulk Actions ( <span class="action-cnt"> </span> ) <i class="fa fa-chevron-down"></i></a>
                                        </th>
                                    </tr>
                                </thead>

                                <tbody>

                                <volist name='_list' id='vo'>  
                                    <tr class="even pointer">
                                         <td class="a-center ">
                                            <input type="checkbox" class="ids flat"  name="id[]" value='{$vo.id}'>
                                        </td>
                                        <td class=" ">{$vo.uid}</td>
                                        <td class=" ">{$vo.uid}</a></td>
                                      
                                    
                                        <td class=" ">{$vo.money}</td>
                                       
                                        <td class=" ">{$vo.create_time|time_format}</td>
                                        <td class=" ">
                                            <eq name="vo.apply_status" value="10"><button class="btn btn-info btn-xs ">等待审核</button></eq>
                                           <eq name="vo.apply_status" value="20"><button class="btn btn-info btn-sucess ">审核成功</button></eq>
                                           <eq name="vo.apply_status" value="30"><button class="btn btn-info btn-danger ">审核失败</button></eq>
                                        </td>
                            
                                        <td>                                    
                                           <eq name="vo.apply_status" value="10"><a href="{:U('changeStatus',array('id'=>$vo['id']))}" class="btn btn-dark common_href_comfirm_pointsuser" titles="确认申请" content="确认申请">确认申请</a></eq>
                                        </td>
                                    </tr>
                                </volist>
                                </tbody>
                            </table>
                        </div>
</form>


                        <nav>
                            <ul class="pagination">
                                {$_page}
                            </ul>
                        </nav>          
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</block>
<block name="script">
    <script src="__STATIC__/iCheck/icheck.min.js"></script>
    <script>
        //搜索功能
        $("#search").click(function(){
          var url = $(this).attr('url');
          var str = $('.search-input').val()
              var query  = $('.search-input').attr('name')+'='+str.replace(/(^\s*)|(\s*$)/g,"");

              if( url.indexOf('?')>0 ){
                  url += '&' + query;
              }else{
                  url += '?' + query;
              }
          window.location.href = url;
        });
        Lzy.highlight_subnav('{:U('index')}');        
        //回车自动提交方式
        function ctlent()
        {
            if(event.keyCode===13){
                $("#search").click();
            }            
        }    
    </script>   
</block>